@charset "utf-8";
/**
 * Created by kroyo on 2018/03/12
 * company-infor.html  公司信息 页面样式
 */


@import 'common/mixincommon';



//公司信息 logo
.content-logo{
    width: 100%;
    padding: 20px;
    border: 1px solid $borcolor;
    @include borradius(4px);
    margin-bottom: 20px;
    .logo-wrapper{
        float: left;
        width: 80px;
        height: 80px;
        line-height: 78px;
        font-size: 0;
        border: 1px solid $borcolor;
        @include borradius(50%);
        overflow: hidden;
        text-align: center;
        vertical-align: middle;
        img{
            width: 100%;
            vertical-align: middle;
        }
    }
    .logo-text{
        float: left;
        line-height: 14px;
        color: $s9;
        font-size: 14px;
        margin-left: 30px;
    }
    .editlogo-btn{
        display: inline-block;
        color: $acolor;
        font-size: 14px;
        margin: 20px 0;
        cursor: pointer;
        @include transitions(.4s);
        .iconfont{
            color: $acolor;
            font-size: 14px;
            margin-right: 10px;
            @include transitions(.4s);
        }
    }
}


//公司信息浏览
.view-main{
    position: relative;
    .logo-wrapper{
        position: absolute;
        top: 130px;
        right: 40px;
        width: 120px;
        height: 120px;
        line-height: 120px;
        font-size: 0;
        @include borradius(50%);
        overflow: hidden;
        text-align: center;
        img{
            width: 100%;
            vertical-align: middle;
        }
    }
    .data-list h3{
        margin-top: 0;
    }
    .btn{
        margin-right: 20px;
    }
}



//公司信息
.data-list{
    h3{
        line-height: 30px;
        margin-top: 30px;
        .btn{
            float: right;
            font-size: 14px;
        }
    }
    .list-header{
        line-height: 16px;
        color: $s9;
        font-size: 14px;
        margin: 20px 0 40px;
    }
    .list-item{
        font-size: 0;
        margin-bottom: 40px;
        .ptext{
            display: inline-block;
            font-size: 14px;
        }
        .plabel{
            width: 160px;
            color: $s6;
        }
        .text{
            width: 540px;
            color: $s3;
        }
    }
    //公司详情 多行问题
    .moreline,.companyimg{
        line-height: 24px;
        .plabel{
            vertical-align: top;
        }
    }
    //公司详情图
    .companyimg{
        margin-bottom: 0;
        .text{
            font-size: 0;
            overflow: hidden;
            img{
                max-width: 100%;
            } 
        }    
    }
}









//公司信息的编辑
.edit-content{
    padding-left: 50px;
    padding-right: 50px;
    .list-header{
        line-height: 16px;
        color: $s9;
        font-size: 14px;
        margin: 20px 0;
    }
    .list-item{
        margin-bottom: 20px;
    }
    input,textarea{
        color: $s3;
        font-size: 14px;
        border: 1px solid $borcolor;
        @include borradius(4px);
        @include inputplace($s9);
    }
    input{
        height: 40px;
        padding-left: 10px;
        padding-right: 10px;
    }
    textarea{
        resize: none;
        @include fontfamily();
        padding: 10px;
    }
    .select-pnum{
        display: inline-block;
        input{
            cursor: pointer;
        }
    }
    .width500{
        width: 500px;
    }
    .width280{
        width: 280px;
    }
    //vertical-align:top
    .vertop{
        line-height: 40px;
        vertical-align: top;
    }
    //公司详情
    .companyimg{
        .width500{
            display: inline-block;
            width: 510px;
            margin-left: -10px;
        }
    }
    .add-wrapper{
        .img-add{
            width: 44px;
            height: 44px;
            background: url(../img/infor/bg-add.png) no-repeat center;
            margin: 25px auto 5px;
        }
        .img-text{
            color: $s9;
            font-size: 12px;
            line-height: 16px;
        }    
    }
    .img-wrapper{
        position: relative;
        float: left;
        width: 160px;
        height: 120px;
        line-height: 120px;
        font-size: 0;
        border-radius: 4px;
        margin-left: 10px;
        margin-bottom: 10px;
        overflow: hidden;
        background-color: $se;
        text-align: center;
        cursor: pointer;
        &:hover{
            .img-delete{
                bottom: 0;
            }
        }
        img{
//          width: 100%;
            max-width: 100%;
//          height: 100%;
            max-height: 100%;
            vertical-align: middle;
        }
    }
    //图片上传进度
    .img-process{
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,.4);
        cursor: default;
        .pro-div{
            position: absolute;
            bottom: 0;
            width: 100%;
            height: auto;
            padding:0 15px;
        }
        .pro-precent{
            color: $sf;
            font-size: 12px;
            text-align: right;
        }
        .pro-wrapper{
            position: relative;
            width: 100%;
            height: 8px;
            border-radius: 4px;
            background-color: rgba(238,238,238,.5);
            overflow: hidden;
        }
        .pro{
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            border-radius: 4px;
            background-color: $acolor;
        }
        .pro-text{
            color: $sf;
            font-size: 12px;
        }
    }
    .img-delete{
        display: none;
        position: absolute;
        bottom: -30px;
        width: 100%;
        height: 30px;
        line-height: 30px;
        color: #dddddd;
        background-color: rgba(0,0,0,.6);
        cursor: pointer;
        transition: .4s all;
        &:hover{
            color: $sf;
        }
    }
    .moreline textarea{
        height: 100px;
    }
    .companyimg textarea{
        height: 150px;
    }
    //保存、取消按钮
    .btnlist{
        display: inline-block;
        width: 500px;
        font-size: 0;
        a{
            display: inline-block;
            width: 68px;
            height: 40px;
            font-size: 14px;
            text-align: center;
            @include borradius(4px);
            vertical-align: middle;
            cursor: pointer;
        }
        .savebtn{
            line-height: 40px;
            color: $sf;
            background-color: $acolor;
        }
        .cancelbtn{
            line-height: 38px;
            color: $s3;
            background-color: transparent;
            border: 1px solid $borcolor;
            margin-left: 20px;
        }
    }
}






//省市区三级级联
.address-wrapper{
    display: inline-block;
    width: 500px;
    vertical-align: middle;
    .address-select{
        margin-bottom: 20px;
    }
    .select{
        position: relative;
        display: inline-block;
        width: 120px;
        height: 40px;
        cursor: pointer;
        input{
            width: 100%;
            height: 100%;
            cursor: pointer;
        }
    }
    .select-city{
        margin: 0 10px;
    }
}
